package com.fg.pro.model.trade.dto;

import lombok.Data;

import java.util.List;

@Data
public class GmCategoryDto {
    @Data
    public class GmCategoryRequest{
        public boolean has_delete;

        public GmCategoryRequest(boolean has_delete) {
            this.has_delete = has_delete;
        }
    }


    /**
     *                  category_id": 528086451745721384,
     *                 "create_time": 1724293653673,
     *                 "update_time": 1724293653673,
     *                 "group_id": 508272182464348184,
     *                 "parent_id": 528086451661835304,
     *                 "station_id": 508272255059361818,
     *                 "name": "液体乳",
     *                 "level": 2,
     *                 "sort_num": 1724293653
     */
    @Data
    public class GmCategoryReponse{
        public List<GmCategoryData> categories;

        @Data
        public class GmCategoryData{
            public Long category_id;
            public Long create_time;
            public Long update_time;
            public Long group_id;
            public Long parent_id;
            public Long station_id;
            public String name;
            public Integer rank;
            public Integer level;
            public Integer sort_num;
        }

    }

}
